import { Entity,Column,PrimaryGeneratedColumn,OneToOne, JoinColumn } from "typeorm"; 
import { user } from './user.entity';
@Entity()
export class is_wgj{
    @PrimaryGeneratedColumn()
    is_wgjId?: string;

    @Column()
    user_id: string;

    @Column()
    is_wgj: number;

    @OneToOne(()=>user,(user)=>user.user_id)
    @JoinColumn({name:'user_id'})
    user: user;
}